package metu.tespit.session.accountManagement;

import metu.tespit.entitiy.accountManagement.UserRole;
import metu.tespit.session.EntityManager.ExtendedEntityHome;

import org.jboss.seam.annotations.Begin;
import org.jboss.seam.annotations.Name;
import org.jboss.seam.annotations.web.RequestParameter;

@Name("userRoleHome")
public class UserRoleHome extends ExtendedEntityHome<UserRole>
{
    /**
	 * 
	 */
	private static final long serialVersionUID = 7964040915203859701L;
	@RequestParameter Long userRoleId;

    @Override
    public Object getId()
    {
        if (userRoleId == null)
        {
            return super.getId();
        }
        else
        {
            return userRoleId;
        }
    }

    @Override @Begin
    public void create() {
        super.create();
    }

}
